import request from "@/utils/request";

export default {
	// 落地页信息 - 获取
	getAdView: (params) => request.get("/open/ad/view", { params }),
	// 客服信息 - 获取
	getAdCustomer: (params) => request.get("/open/ad/customer", { params }),
	//  客服 - 点击数 - 提交
	adVisit: (params) => request.post("/open/ad/visit", params),
	// 客服 - 行为数 - 提交
	adBehavior: (params) => request.post("/open/ad/behavior", params),
	// 获取课程
	getCourse: (params) => request.get("/course/getCourse", { params }),
	// 课程报名
	courseSingUp: (params) => request.post("/course/singUp", params),
	getAdFormCity: (params) => request.get("/open/ad/formCity", { params }),
	getDepositData: (params) => request.get("/group/deposit/getData", { params }),
	// 落地页表单提交
	adSubmit: (params) => request.post("/open/ad/submit", params),
	adDataSubmit: (params) => request.post("/open/ad/datasubmit", params),
	// 获取订单支付状态
	getadparam: (params) => request.get('/open/ad/getadparam', { params }),
	// 小程序订单提交
	mpAdSubmit: params => request.post('/mini/ad/submit', params),
	// 小程序授权获取手机号
	mpGetMobile: params => request.post('/mini/ad/getMobile', params),
	// 小程序数据上报
	adReport: params => request.post('/mini/ad/actionAdd', params),
	// 数据上报
	autoAction: params => request.post('/open/ad/autoAction', params),
	// 获取客服参数
	geturlparam: params => request.get('/open/ad/geturlparam', { params }),
	// 退订申请
	refund: params => request.post('/open/ad/refund', params),

	// 获取小程序链接
	getMiniScheme: params => request.post('/group/ad/getMiniScheme', params),
	// 落地页投诉
	adComplaint: params => request.post('/open/ad/complaint', params),

	// 公众号配置
	wxConfig: () => request.get('/admin/wechat/config'),

	// 获取短信验证码
	getVerifyCode: params => request.post('/user/verifySearchMobile', params)
};

